 @include('layouts.Common.header')


 <div class="col-12 _autoheight">
     <div class="card card-primary card-outline card-outline-tabs">
         <div class="card-header p-0 border-bottom-0">
             <ul class="nav nav-tabs" id="custom-tabs-four-tab" role="tablist">
                 <li class="nav-item">
                     <a class="nav-link active" id="custom-tabs-four-home-tab" data-toggle="pill"
                         href="#custom-tabs-four-home" role="tab" aria-controls="custom-tabs-four-home"
                         aria-selected="false">用户信息</a>
                 </li>
                 <li class="nav-item">
                     <a class="nav-link" id="custom-tabs-four-profile-tab" data-toggle="pill"
                         href="#custom-tabs-four-profile" role="tab" aria-controls="custom-tabs-four-profile"
                         aria-selected="false">权限</a>
                 </li>

             </ul>
         </div>
         <form name="actionForm" id="actionForm" method="post">
             @csrf
             <div class="card-body">
                 <div class="tab-content" id="custom-tabs-four-tabContent">
                     <div class="tab-pane fade    active show" id="custom-tabs-four-home" role="tabpanel"
                         aria-labelledby="custom-tabs-four-home-tab">


                         <div class="form-group row">
                             <label class="col-sm-2  col-form-label"><i>*</i>名称：</label>
                             <div class="col-sm-8">

                                 <input type="text" class="form-control" name="data[name]"
                                     value="{{ isset($gdata['name']) ? $gdata['name'] : '' }}" placeholder="">
                             </div>
                         </div>

                         <div class="form-group row">
                             <label class="col-sm-2  col-form-label">排序：</label>
                             <div class="col-sm-8">
                                 <input type="text" class="form-control" name="data[sort]"
                                     value="{{ isset($gdata['sort']) ? $gdata['sort'] : '' }}" placeholder="">
                             </div>
                         </div>
                         <div class="form-group row">
                             <label class="col-sm-2  col-form-label">启用：</label>
                             <div class="col-sm-8">
                                 <input type="checkbox" class="Switch" name="data[display]"
                                     value="{{ isset($gdata['display']) ? $gdata['display'] : '' }}" checked
                                     data-bootstrap-switch data-off-color="danger" data-on-color="success">
                             </div>
                         </div>
                         <input type="dosubmit" id="dosubmit" name="dosubmit" hidden />

                     </div>
                     <div class="tab-pane fade" id="custom-tabs-four-profile" role="tabpanel"
                         aria-labelledby="custom-tabs-four-profile-tab">
                         <div class="nr-toolbar" id="jqgrid_toolbar" data-grid="jqgrid_items">
                         </div>
                         <div class="nr-grid">
                         </div>
                     </div>
                 </div>
             </div>
         </form>
         <!-- /.card -->
     </div>
 </div>

 {!! js() !!}
 <script>
     var fg = {!! json_encode($fg) !!};
     var toolbar = {!! json_encode($toolbar) !!};
     var items = {!! json_encode(isset($items) ? $items : []) !!};
     $(".nr-grid").initgridEdit(fg);
     $(".nr-toolbar").toolbarEdit({
         'toolbar': toolbar
     });
     $(".nr-toolbar").toolbarEdit("addRowData", items)
 </script>
